<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include/include :: header('操作日志详细')" />
	<th:block th:include="include/include :: jsonview-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group">
			<label class="col-sm-2 control-label">日志类型：</label>
			<div class="form-control-static" th:text="${@dict.getLabel('log_type',operLog.type)}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">日志标题：</label>
			<div class="form-control-static" th:text="${operLog.title}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">请求地址：</label>
			<div class="form-control-static" th:text="${operLog.requestUri}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">创建人：</label>
			<div class="form-control-static" th:text="${operLog.createBy}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">创建时间：</label>
			<div class="form-control-static" th:text="${#dates.format(operLog.createTime, 'yyyy-MM-dd HH:mm:ss')}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">更新时间：</label>
			<div class="form-control-static" th:text="${#dates.format(operLog.updateTime, 'yyyy-MM-dd HH:mm:ss')}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">操作ip地址：</label>
			<div class="form-control-static" th:text="${operLog.remoteAddr}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">操作方式：</label>
			<div class="form-control-static" th:text="${operLog.method}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">方法执行时间：</label>
			<div class="form-control-static" th:text="${operLog.time}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">用户代理：</label>
			<div class="form-control-static"><pre id="userAgent"></pre></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">提交数据：</label>
			<div class="form-control-static"><pre id="params"></pre></div>
		</div>
		<div class="form-group" th:style="'display:' + ${operLog.type == '0' ? 'none' : 'block'}">
			<label class="col-sm-2 control-label">异常信息：</label>
			<div class="form-control-static"><pre id="exception"></pre></div>
		</div>
	</form>
    </div>
    <th:block th:include="include/include :: footer" />
    <th:block th:include="include/include :: jsonview-js" />
    <script th:inline="javascript">
	    $(function() {
	    	var userAgent = [[${operLog.userAgent}]];
	    	$("#userAgent").text(userAgent);
	    	var params = [[${operLog.params}]];
	    	$("#params").text(params);
	    	var exception = [[${operLog.exception}]];
	    	$("#exception").text(exception);
	    });
    </script>
</body>
</html>